3.1 \(\int \cot (a+b x) \, dx\)

Optimal. Leaf size=11 \[ \frac {\log (\sin (a+b x))}{b} \]

[Out]

ln(sin(b*x+a))/b

________________________________________________________________________________________

Rubi [A]  time = 0.00, antiderivative size = 11, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {3475} \[ \frac {\log (\sin (a+b x))}{b} \]

Antiderivative was successfully verified.

[In]

Int[Cot[a + b*x],x]

[Out]

Log[Sin[a + b*x]]/b

Rule 3475

Int[tan[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[Log[RemoveContent[Cos[c + d*x], x]]/d, x] /; FreeQ[{c, d}, x]

Rubi steps

\begin {align*} \int \cot (a+b x) \, dx &=\frac {\log (\sin (a+b x))}{b}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 19, normalized size = 1.73 \[ \frac {\log (\tan (a+b x))+\log (\cos (a+b x))}{b} \]

Antiderivative was successfully verified.

[In]

Integrate[Cot[a + b*x],x]

[Out]

(Log[Cos[a + b*x]] + Log[Tan[a + b*x]])/b

________________________________________________________________________________________

fricas [A]  time = 0.85, size = 19, normalized size = 1.73 \[ \frac {\log \left (-\frac {1}{2} \, \cos \left (2 \, b x + 2 \, a\right ) + \frac {1}{2}\right )}{2 \, b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(b*x+a),x, algorithm="fricas")

[Out]

1/2*log(-1/2*cos(2*b*x + 2*a) + 1/2)/b

________________________________________________________________________________________

giac [A]  time = 0.40, size = 12, normalized size = 1.09 \[ \frac {\log \left ({\left | \sin \left (b x + a\right ) \right |}\right )}{b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(b*x+a),x, algorithm="giac")

[Out]

log(abs(sin(b*x + a)))/b

________________________________________________________________________________________

maple [A]  time = 0.02, size = 17, normalized size = 1.55 \[ -\frac {\ln \left (\cot ^{2}\left (b x +a \right )+1\right )}{2 b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cot(b*x+a),x)

[Out]

-1/2/b*ln(cot(b*x+a)^2+1)

________________________________________________________________________________________

maxima [A]  time = 1.23, size = 11, normalized size = 1.00 \[ \frac {\log \left (\sin \left (b x + a\right )\right )}{b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(b*x+a),x, algorithm="maxima")

[Out]

log(sin(b*x + a))/b

________________________________________________________________________________________

mupad [B]  time = 0.79, size = 24, normalized size = 2.18 \[ -x\,1{}\mathrm {i}+\frac {\ln \left ({\mathrm {e}}^{a\,2{}\mathrm {i}}\,{\mathrm {e}}^{b\,x\,2{}\mathrm {i}}-1\right )}{b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cot(a + b*x),x)

[Out]

log(exp(a*2i)*exp(b*x*2i) - 1)/b - x*1i

________________________________________________________________________________________

sympy [A]  time = 0.15, size = 29, normalized size = 2.64 \[ \begin {cases} - \frac {\log {\left (\tan ^{2}{\left (a + b x \right )} + 1 \right )}}{2 b} + \frac {\log {\left (\tan {\left (a + b x \right )} \right )}}{b} & \text {for}\: b \neq 0 \\x \cot {\relax (a )} & \text {otherwise} \end {cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(b*x+a),x)

[Out]

Piecewise((-log(tan(a + b*x)**2 + 1)/(2*b) + log(tan(a + b*x))/b, Ne(b, 0)), (x*cot(a), True))

________________________________________________________________________________________